package com.uh.calculation.bean;

import lombok.Data;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

//@Data
@XmlRootElement(name = "OperatorVal")
public class OperatorVal {

    private String  name;
    private  String    field;//计算字段

    private  List<FormulaBean> formulaBeans;
    /**
     *  五个维度 A修改、B异常、C调整、D增速、E匹配
     */
    //@XmlElement(name = "dimension")
    private String dimension;
    /**
     * 1 每月
     * 2  4月年报出来时，但一直触发到该企业被核查或检查为止
     * 3 从变动之月开始算起，3个月内每个月这条都触发，第4个月开始，这条不触发
     * 4 该条只会在每季季报出来后才会触发，一旦触发，持续到该企业被核查或检查
     *
     *
     */
    private  Integer   trigger;


    public String getName() {
        return name;
    }
    @XmlAttribute(name = "name")
    public void setName(String name) {
        this.name = name;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public List<FormulaBean> getFormulaBeans() {
        return formulaBeans;
    }

    @XmlElement(name = "formulaBean")
    public void setFormulaBeans(List<FormulaBean> formulaBeans) {
        this.formulaBeans = formulaBeans;
    }

    public String getDimension() {
        return dimension;
    }

    public void setDimension(String dimension) {
        this.dimension = dimension;
    }

    public Integer getTrigger() {
        return trigger;
    }

    public void setTrigger(Integer trigger) {
        this.trigger = trigger;
    }
}
